<?php if (!defined('THINK_PATH')) exit();?><form method="post" action="<?php echo __ACTION__; ?>" data-validate="true" data-submit="ajax" class="form-horizontal modal modal-small hide fade"> 
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h3>切换店铺</h3>
  </div>
  <div class="modal-body">
		<div class="control-group">
			<label class="control-label">切换店铺</label>
			<div class="controls">
				<select name="shop" data-search="true">
					<option value="">选择切换店铺</option>
					<?php if(is_array($data)): foreach($data as $key=>$item): ?><option value="<?php echo ($item["id"]); ?>,<?php echo ($item["name"]); ?>" <?php echo ($item['id'] == $_SESSION['admin']['user']['shop_id'] ? ' selected="selected"' : ''); ?>><?php echo ($item["name"]); ?></option><?php endforeach; endif; ?>
				</select>
			</div>
		</div>
	</div>
  <div class="modal-footer">
  	<button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
  	<button type="submit" class="btn btn-primary" aria-hidden="true">立即切换</button>
  </div>
</form>